package cc.rengu.redp.bizimpl.csmc.controller;


import cc.rengu.redp.bizimpl.csmc.service.ITxnStatisService;
import cc.rengu.redp.common.exception.RedpException;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author guohaocong
 */
@RestController
@Slf4j
@Api(tags = "报表查询:交易统计表")
@RequestMapping("/admin/csmc/tcTxnStatis")
public class TxnStatisController {

    @Autowired
    private ITxnStatisService txnStatisService;

    @GetMapping("/getTxnStatis")
    public Map<String, Object> getDashboardData(String userId) throws RedpException {
        return txnStatisService.getTxnStatis(userId);
    }

}
